package com.ruoyi.stock.service;

import com.ruoyi.stock.domain.StockMemberOrder;
import com.ruoyi.stock.domain.StockUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 订单Service接口
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public interface IStockMemberOrderService 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public StockMemberOrder selectStockMemberOrderById(Long id);

    /**
     * 查询订单列表
     * 
     * @param stockMemberOrder 订单
     * @return 订单集合
     */
    public List<StockMemberOrder> selectStockMemberOrderList(StockMemberOrder stockMemberOrder);

    /**
     * 新增订单
     * 
     * @param stockMemberOrder 订单
     * @return 结果
     */
    public int insertStockMemberOrder(StockMemberOrder stockMemberOrder);

    /**
     * 修改订单
     * 
     * @param stockMemberOrder 订单
     * @return 结果
     */
    public int updateStockMemberOrder(StockMemberOrder stockMemberOrder);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteStockMemberOrderByIds(Long[] ids);

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteStockMemberOrderById(Long id);


    public Map<String, Object> wxStockOrderPay(StockMemberOrder stockMemberOrder);

    //微信支付回回調
    public Map<String, Object> payNotify(HttpServletRequest request, HttpServletResponse response);

    public StockUser buyOrderUserHandel(StockMemberOrder stockMemberOrder);
}
